package com.zipking.cloud.springbootmybatis.prop;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Data
@Component
@PropertySource(value = {"conf/db-config.conf"})
public class DbConf {

     @Value("${db.username}")
     private String username;

     @Value("${db.password}")
     private String password;

}